package com.wjgl.domain;

/**
 * RoleHasPermission entity. @author MyEclipse Persistence Tools
 */

public class RoleHasPermission implements java.io.Serializable {

	// Fields

	private RoleHasPermissionId id;
	private Permission permission;
	private Role role;

	// Constructors

	/** default constructor */
	public RoleHasPermission() {
	}

	/** full constructor */
	public RoleHasPermission(RoleHasPermissionId id, Permission permission,
			Role role) {
		this.id = id;
		this.permission = permission;
		this.role = role;
	}

	// Property accessors

	public RoleHasPermissionId getId() {
		return this.id;
	}

	public void setId(RoleHasPermissionId id) {
		this.id = id;
	}

	public Permission getPermission() {
		return this.permission;
	}

	public void setPermission(Permission permission) {
		this.permission = permission;
	}

	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

}